import { Component, OnInit } from '@angular/core';
import { NavParams, NavController } from '@ionic/angular';
@Component({
  selector: 'app-order-dialog',
  templateUrl: './order-dialog.component.html',
  styleUrls: ['./order-dialog.component.scss'],
})
export class OrderDialogComponent implements OnInit {
  goodsName: string = 'Note: The product(s) that you are buying are from China. ';
  constructor(private nav: NavParams) { }

  ngOnInit() { }
  onClick() {
    this.close();
  }

  close() {
    this.closeModel();
  }
  closeModel() {
    this.nav.data.modal.dismiss({
      'result': '消失的时候返回的内容',
    });
  }
}
